package mytomcat.config;

import mytomcat.mapping.ServletMapping;

import java.util.ArrayList;
import java.util.List;

/**
 * <ul>
 * <li>Title:  ServletMappingConfig</li>
 * </ul>
 *
 * @author swc
 * @version     V1.0
 * @date 2020/4/20 0020 上午 9:55
 */
public class ServletMappingConfig {

    public static List<ServletMapping> servletMappingList = new ArrayList<ServletMapping>();

    static{
        servletMappingList.add(new ServletMapping("findGirl","/girl.html","mytomcat.servlet.FindGirlServlet"));

        servletMappingList.add(new ServletMapping("helloWorld","/world.html","mytomcat.servlet.HelloWorldServlet"));

        servletMappingList.add(new ServletMapping("error","/error.html","mytomcat.servlet.ErrorServlet"));

        servletMappingList.add(new ServletMapping("index","/index.html","mytomcat.servlet.IndexServlet"));
        //取数据的接口
        servletMappingList.add(new ServletMapping("dataGrid","/dataGrid.ajax","mytomcat.servlet.DataGridServlet"));
    }

}
